Skip to content

feat(onboarding): Gate SCM onboarding flow with useExperiment hook#112206

Merged
jaydgoss merged 4 commits intomasterfrom
jaygoss/vdy-64-use-useexperiment-hook-to-gate-scm-onboarding-flow
Apr 9, 2026
Merged

feat(onboarding): Gate SCM onboarding flow with useExperiment hook#112206
jaydgoss merged 4 commits intomasterfrom
jaygoss/vdy-64-use-useexperiment-hook-to-gate-scm-onboarding-flow

Conversation

@jaydgoss
Copy link
Copy Markdown
Member

@jaydgoss jaydgoss commented Apr 3, 2026

Gate the SCM onboarding flow behind the onboarding-scm-experiment experiment using useExperiment instead of checking organization.features for the onboarding-scm feature flag. This allows us to run the SCM onboarding as a proper A/B experiment with exposure tracking.

Updates the test to provide the experiment assignment via OrganizationFixture and registers a minimal useExperiment hook in HookStore (since gsApp's registerHooks() doesn't run in the test environment).

Refs VDY-64

@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 3, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 3, 2026
@jaydgoss jaydgoss marked this pull request as ready for review April 3, 2026 17:21
@jaydgoss jaydgoss requested a review from a team as a code owner April 3, 2026 17:21
@jaydgoss jaydgoss marked this pull request as draft April 7, 2026 19:39
jaydgoss added 3 commits April 7, 2026 14:42
Replace the feature flag check with the useExperiment hook to gate
the SCM onboarding flow behind the onboarding-scm-experiment
experiment instead of the onboarding-scm feature flag.
The SCM onboarding flow is now gated by useExperiment instead of a
feature flag. Update the test to use experiments on the org fixture
and register a minimal useExperiment hook in HookStore, since
gsApp's registerHooks() doesn't run in the test environment.
Now that useExperiment gates on organization.features (d389e46), the
noop fallback works out of the box in tests. Remove the custom
HookStore-based useTestExperiment shim and switch the fixture back to
features instead of experiments.
@jaydgoss jaydgoss force-pushed the jaygoss/vdy-64-use-useexperiment-hook-to-gate-scm-onboarding-flow branch from b70515f to b247c41 Compare April 7, 2026 19:43
Rename organizations:onboarding-scm to organizations:onboarding-scm-experiment
to match the useExperiment hook now used in the onboarding component.
@jaydgoss jaydgoss marked this pull request as ready for review April 7, 2026 19:56
@jaydgoss jaydgoss merged commit 3d7fa69 into master Apr 9, 2026
58 checks passed
@jaydgoss jaydgoss deleted the jaygoss/vdy-64-use-useexperiment-hook-to-gate-scm-onboarding-flow branch April 9, 2026 19:51
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
…112206)

Gate the SCM onboarding flow behind the `onboarding-scm-experiment`
experiment using `useExperiment` instead of checking
`organization.features` for the `onboarding-scm` feature flag. This
allows us to run the SCM onboarding as a proper A/B experiment with
exposure tracking.

Updates the test to provide the experiment assignment via
`OrganizationFixture` and registers a minimal `useExperiment` hook in
HookStore (since gsApp's `registerHooks()` doesn't run in the test
environment).

Refs VDY-64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants